const mongoose = require('mongoose');
mongoose.connect("mongodb://localhost/test")
mongoose.Promise = Promise;

//留言对象
const Message = mongoose.model("Message",{
    ms: String,
    createTime: Date,
    creator: String
})

module.exports = Message ;